feat: add apply_scenario() and validate_scenario() to AxmeClient#30
Merged
George-iam merged 4 commits intomainfrom Mar 13, 2026
Merged
feat: add apply_scenario() and validate_scenario() to AxmeClient#30George-iam merged 4 commits intomainfrom
George-iam merged 4 commits intomainfrom
Conversation
Made-with: Cursor
apply_scenario() submits a ScenarioBundle to POST /v1/scenarios/bundle in one atomic call — provisions agents, compiles the workflow, and creates the intent. validate_scenario() performs a dry-run via POST /v1/scenarios/validate without creating any resources. Made-with: Cursor
…cstring Made-with: Cursor
Implements GET /v1/agents/{address}/intents/stream SSE consumer in AxmeClient.
Adds _iter_agent_intents_stream private helper, updates _is_terminal_intent_event
to include TIMED_OUT status, and adds 11 comprehensive tests covering SSE parsing,
scheme stripping, cursor advancement across reconnects, timeout, and auth errors.
Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apply_scenario(bundle, *, idempotency_key, trace_id)— submits aScenarioBundletoPOST /v1/scenarios/bundle; provisions agents, compiles workflow, creates intent atomicallyvalidate_scenario(bundle, *, trace_id)— dry-run validation viaPOST /v1/scenarios/validatePart of the Durable Workflow Plan, Group 5-C.
Test plan
apply_scenariocallsPOST /v1/scenarios/bundlewith correct bodyidempotency_keyis forwarded as both header and body fieldvalidate_scenariocallsPOST /v1/scenarios/validateretryable=TrueMade with Cursor